www.gusucode.com > 落叶冰点万能企业网站内容管理系统 V9.1 > 落叶冰点万能企业网站内容管理系统 V9.1\code\Model\ComponentLabels\数字输入框控件\do_edit_mode_label.asp

    <%'$start_ext_newDsoft 以下系统生成,勿删!
'$newDsoft_label_type$:asp_label$end_newDsoft_label_type$
'$newDsoft_label_name$:$doeditmode$-ComponentLabel-$$end_newDsoft_label_name$
'$newDsoft_label_sql$: $end_newDsoft_label_sql$
'$newDsoft_label_params$:minv,最小值(不填则无限制)|maxv,最大值(不填则无限制)|ixiaoshuo,是否可以为小数|inull,是否允许空$end_newDsoft_label_params$
'$newDsoft_label_fenye_num$: $end_newDsoft_label_fenye_num$
'$newDsoft_label_beizhu$:数字输入框控件在修改页的处理页里的标签$end_newDsoft_label_beizhu$
'$newDsoft_is_sys_label$:0$end_newDsoft_is_sys_label$
'$newDsoft_other_params$:htmledxa:|htmledxb:$end_newDsoft_other_params$
'$end_ext_newDsoft%><%if $mypost$value$="" and cstr($xxvar$inull)="0" then
$page$is$vaild$=0
$page$err$msg$=$page$err$msg$&$field$mybmname$&"不能为空!\n"
end if

if $mypost$value$<>"" then
if isnumeric($mypost$value$)=true then



if cdbl(clng($mypost$value$))<>cdbl($mypost$value$) and cstr($xxvar$ixiaoshuo)="0" then

$page$is$vaild$=0
$page$err$msg$=$page$err$msg$&$field$mybmname$&"不能为小数!\n"

else


if cstr($xxvar$minv)<>"" then
if cdbl($mypost$value$)<cdbl($xxvar$minv) then

$page$is$vaild$=0
$page$err$msg$=$page$err$msg$&$field$mybmname$&" 不能小于"&cstr($xxvar$minv)&"!\n"

end if
end if




if cstr($xxvar$maxv)<>"" then
if cdbl($mypost$value$)>cdbl($xxvar$maxv) then

$page$is$vaild$=0
$page$err$msg$=$page$err$msg$&$field$mybmname$&" 不能大于"&cstr($xxvar$maxv)&"!\n"

end if
end if

end if



else
$page$is$vaild$=0
$page$err$msg$=$page$err$msg$&$field$mybmname$&" 只能输入数字!\n"



end if

end if


$mysave$value$=$mypost$value$

%>